using System;
using UnityEngine;

namespace Project
{
    public class FullScreenManager: MonoBehaviour
    {
        void Update()
        {
            if (Input.GetKeyDown(KeyCode.Escape))
            {
                Screen.fullScreen = false;
            }

            if (Input.GetKeyDown(KeyCode.F11))
            {
                Resolution[] resolutions = Screen.resolutions;
                Screen.SetResolution(resolutions[resolutions.Length - 1].width, resolutions[resolutions.Length - 1].height, true);
                Screen.fullScreen = true;
            }
        }
    }
}